<!DOCTYPE html>
<html>

<head>

    {include file="common:meta"}

</head>
<style>
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">

                <div class="ibox-content">
                    <form method="" class="form-horizontal" id="form" action="">


                        <input type="hidden" name="id" value="{$id}">

                        <div class="form-group">
                            <label class="col-sm-2 control-label" >
                                <span class="c-red">*</span>是否允许提现：
                            </label>
                            <div class="col-md-2 col-sm-10">
                                <div class="radio i-checks">
                                    {if ( $open.withdraw == 1) }
                                    <label><input type="radio"  name="withdraw" value="1" checked> <i></i>是</label>
                                    <label><input type="radio" name="withdraw"  value="2"> <i></i> 否</label>
                                    {else /}
                                    <label><input type="radio"  name="withdraw" value="1" > <i></i>是</label>
                                    <label><input type="radio" name="withdraw"  value="2" checked> <i></i> 否</label>
                                    {/if}
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label" >
                                <span class="c-red">*</span>是否允许兑换：
                            </label>
                            <div class="col-md-2 col-sm-10">
                                <div class="radio i-checks">
                                    {if ( $open.exchange == 1) }
                                    <label><input type="radio"  name="exchange" value="1" checked> <i></i>是</label>
                                    <label><input type="radio" name="exchange"  value="2"> <i></i> 否</label>
                                    {else /}
                                    <label><input type="radio"  name="exchange" value="1" > <i></i>是</label>
                                    <label><input type="radio" name="exchange"  value="2" checked> <i></i> 否</label>
                                    {/if}

                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label" >
                                <span class="c-red">*</span>是否允许代充：
                            </label>
                            <div class="col-md-2 col-sm-10">
                                <div class="radio i-checks">
                                    {if ( $open.recharge == 1) }
                                    <label><input type="radio"  name="recharge" value="1" checked> <i></i>是</label>
                                    <label><input type="radio" name="recharge"  value="2"> <i></i> 否</label>
                                    {else /}
                                    <label><input type="radio"  name="recharge" value="1" > <i></i>是</label>
                                    <label><input type="radio" name="recharge"  value="2" checked> <i></i> 否</label>
                                    {/if}
                                </div>
                            </div>
                        </div>

                        <div class="form-group has-success">
                            <div class="col-sm-4 col-sm-offset-2">
                                <input class="btn btn-primary" id="btn-submit" type="button" value="提交">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="common:footer"}
<script>

    $('#btn-submit').click(function(){

            $.ajax({
                type:'post',
                url:'/RoomProfitChangePower',
                async:true,
                data:$('#form').serialize(),
                dataType:'json',
                success:function(result){
                    if(result.code === 100){
                        layer.msg(result.msg,{
                            icon:1,
                            time:1000
                        });
                    }
                    else{
                        layer.msg(result.msg,{
                            icon:2,
                            time:1000
                        });
                    }
                },
                error:function(err){
                    layer.msg('服务器开小差了！',{
                        time:1500
                    });
                }
            });
        });



</script>
</body>

</html>